package models

import (
	"gorm.io/gorm"
)

type Queries struct {
	gorm.Model
	DiscussionID uint        `gorm:"type:int(10);not null;"`
	OpenId       uint        `gorm:"type:int(10);not null;"`
	Status       string      `gorm:"type:varchar(20);not null;"`
	Content      string      `gorm:"type:varchar(512);not null;"`
	Discussions  Discussions `gorm:"foreignKey:DiscussionID"`
	Students     Students    `gorm:"foreignKey:OpenId"`
}
